﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Appcode;
using MyWeb.Business;
using MyWeb.Data;
using MyWeb.Common;

namespace MyWeb
{
    public partial class MakeOrder : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnMake_Click(object sender, EventArgs e)
        {
            Data.tblOrderDetailInfo od = new Data.tblOrderDetailInfo();
        
            od._address = txtAddress.Text;
            od._timeship = txtTime.Text;
            od._price = txtPrice.Text;
            od._quantity = txtQuan.Text;
            od._status = "1";
            tblOrderDetailService.tblOrderDetail_Insert(od);
        }

        protected void btnCan_Click(object sender, EventArgs e)
        {
            Response.Redirect("Default.aspx");
        }
    }
}